package com.hzx.ssm.dao;

import com.hzx.ssm.entity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageDao {
    List<Message> findAllIsMessage();

    List<Message> findAllIsNotMessage();

    void deleteMessageById(String message_id);

    void addMessage(Message message);

    void setMessageEnable(String message_id);

    List<Message> findMyAllMessage(@Param("user_id") String user_id);

    Message MessageToUser(@Param("message_id") String message_id,@Param("user_id") String user_id);

    void updateUpNum(@Param("message_id") String message_id,@Param("num") String num);

    String findUpNum(@Param("message_id") String message_id);




}
